<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, shrink-to-fit=no" name="viewport">
  <title>Love慈善登录</title>

  <link rel="stylesheet" href="background/modules/bootstrap/css/bootstrap.min.css">
  <link rel="stylesheet" href="background/modules/ionicons/css/ionicons.min.css">
  <link rel="stylesheet" href="background/modules/fontawesome/web-fonts-with-css/css/fontawesome-all.min.css">

  <link rel="stylesheet" href="background/css/demo.css">
  <link rel="stylesheet" href="background/css/style.css">
</head>

<body>
  <div id="app">
    <section class="section">
      <div class="container mt-5">
        <div class="row">
          <div class="col-12 col-sm-8 offset-sm-2 col-md-6 offset-md-3 col-lg-6 offset-lg-3 col-xl-4 offset-xl-4">
            <div class="login-brand">
              爱慈善-用户登录
            </div>

            <div class="card card-primary">
              <div class="card-header"><h4>登录</h4></div>

              <div class="card-body">
                <form method="POST" action="login" class="needs-validation" novalidate="">
                  <div class="form-group">
                    <label for="email">邮箱</label>
                    <input id="email" type="email" class="form-control" name="email" tabindex="1" required autofocus>
                    <div class="invalid-feedback">
                      请输入您的邮箱
                    </div>
                  </div>

                  <div class="form-group">
                    <label for="password" class="d-block">密码
                      <div class="float-right">
                        <a href="forget-password">
                          忘记密码?
                        </a>
                      </div>
                    </label>
                    <input id="password" type="password" class="form-control" name="password" tabindex="2" required>
                    <div class="invalid-feedback">
                      请输入您的密码
                    </div>
                  </div>
                  <font style="color: red;"><span th:text="${errorMsg}"></span></font>
                  <br><br>
                  <div class="form-group">
                    <button type="submit" class="btn btn-primary btn-block" tabindex="4">
                      登录
                    </button>
                  </div>
                </form>
              </div>
            </div>
            <div class="mt-5 text-muted text-center">
              没有账户? <a href="register-page">点击注册</a>
            </div>
            <div class="simple-footer">
              Copyright &copy; <a href="index">爱慈善公益平台</a> 2020
            </div>
          </div>
        </div>
      </div>
    </section>
  </div>

  <script src="background/modules/jquery.min.js"></script>
  <script src="background/modules/popper.js"></script>
  <script src="background/modules/tooltip.js"></script>
  <script src="background/modules/bootstrap/js/bootstrap.min.js"></script>
  <script src="background/modules/nicescroll/jquery.nicescroll.min.js"></script>
  <script src="background/modules/scroll-up-bar/dist/scroll-up-bar.min.js"></script>
  <script src="background/js/sa-functions.js"></script>
  <script src="background/js/scripts.js"></script>
  <script src="background/js/custom.js"></script>
</body>
</html>